﻿<%@ Page Title="工单查询" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="WorkFormQuery.aspx.cs" Inherits="Com.Crc.WorkFormManage.Web.WorkFormQuery" %>

<%@ Register Assembly="Infragistics2.WebUI.UltraWebGrid.v7.2, Version=7.2.20072.61, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

<table>
    <tr>
        <td>
            <table>
            <tr>
            
        <td>
            <asp:Label ID="Label3" Text="工单类型" runat="server" ></asp:Label>
        </td>
        <td>
             <asp:DropDownList ID="workformType" runat="server" Width="100px">
                <asp:ListItem Text="" Value="-1" ></asp:ListItem>
                <asp:ListItem Text="新装EPON" Value="12" ></asp:ListItem>
                <asp:ListItem Text="新装ADSL" Value="11" ></asp:ListItem>
                <asp:ListItem Text="修改" Value="2" ></asp:ListItem>
                <asp:ListItem Text="改E计划（配合套餐）" Value="3" ></asp:ListItem>
                <asp:ListItem Text="拆除" Value="4" ></asp:ListItem>

             </asp:DropDownList>
        </td>
        <td><asp:label ID="Label4" Text="用户名" runat="server" ></asp:label></td>
        <td><asp:Textbox ID="account" runat="Server"></asp:Textbox></td>
            </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Button ID="btn" runat="server" Text="查询" CssClass="inputbutton" onclick="btn_query_workform"/>
        </td>
    </tr>
    <tr>
    <td align="left">
        <igtbl:ultrawebgrid ID="grd" runat="server" OnInitializeLayout="grd_InitializeLayout"
                    OnPageIndexChanged="grd_PageIndexChanged" Height="0px" >
                    <DisplayLayout BorderCollapseDefault="NotSet" Name="gridxrole" RowHeightDefault="22px"
                        StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00" AutoGenerateColumns="False"
                        SelectTypeRowDefault="Single" CellClickActionDefault="RowSelect" RowSelectorsDefault="No"
                        CellPaddingDefault="1" CellSpacingDefault="1" ScrollBar="Never">
                        <ClientSideEvents CellClickHandler="OnCellClick" />
                        <ActivationObject BorderWidth="" BorderColor="153, 153, 153">
                        </ActivationObject>
                        <RowStyleDefault BackColor="LightBlue" BorderStyle="Solid" BorderWidth="0px" Font-Names="Verdana"
                            Font-Size="8pt" BorderColor="#669999" ForeColor="#74776A">
                            <Padding Left="3px" />
                        </RowStyleDefault>
                        <EditCellStyleDefault BorderStyle="None" BorderWidth="0px">
                        </EditCellStyleDefault>
                        <RowAlternateStyleDefault BackColor="BurlyWood">
                        </RowAlternateStyleDefault>
                        <FrameStyle BorderStyle="Solid" BorderWidth="0px" Font-Names="Verdana" Font-Size="8pt"
                            BorderColor="#354A54" Height="0px">
                            <BorderDetails StyleBottom="None" StyleLeft="None" StyleRight="None" StyleTop="None" />
                        </FrameStyle>
                        <HeaderStyleDefault BorderStyle="Solid" BorderWidth="0px" BorderColor="#354A54" Height="22px"
                            BackColor="#01212F" ForeColor="White">
                        </HeaderStyleDefault>
                        <Pager AllowPaging="True" PageSize="20" Pattern="&lt;table&gt;&lt;tr&gt;&lt;td align=right&gt;Per page:[pagesize] Page:[default]&lt;td&gt;&lt;/tr&gt;&lt;/table&gt; " StyleMode="PrevNext">
                        </Pager>
                    </DisplayLayout>
                    <Bands>
                        <igtbl:UltraGridBand >
                            <Columns>
                                <igtbl:UltraGridColumn >
                                    <Header Caption="Column 0">
                                    </Header>
                                </igtbl:UltraGridColumn>
                            </Columns>
                            <AddNewRow View="NotSet" Visible="NotSet">
                            </AddNewRow>
                        </igtbl:UltraGridBand>
                    </Bands>
                </igtbl:ultrawebgrid>
                </td>
    </tr>

</table>

<script type="text/javascript">
    function SelectAll(oGrid, checkbox) {
        var o = igtbl_getGridById(oGrid);
        var oRows = o.Rows;
        for (i = 0; i < oRows.length; i++) {
            (oRows.getRow(i).getCellFromKey("CHECK")).setValue(checkbox.checked);
        }
    }

    function OnCellClick(table, cell) {
        var cell = igtbl_getCellById(cell);
        if (cell == null) {
            return true;
        }
        else {
            if (cell.Column.Key == "Edit") {
                return false;
            }
        }

    }
</script>
    
</asp:Content>